package com.trg.designmodel.template;

/**
 * @ClassName: Client
 * @Description:
 * @Author: tangrg
 * @Date: 2021/7/23 15:02
 * @Version: 1.0
 * @Return:
 **/
public class Client {

    public static void main(String[] args) {
        //制作花生豆浆
//        AbstractSoyaMilk peanMilk = new PeanMilk();
//        peanMilk.make();
        //制作红豆豆浆
//        AbstractSoyaMilk redbeanMilk = new RedbeanMilk();
//        redbeanMilk.make();
        //什么都不加，制作纯豆浆
        AbstractSoyaMilk peanMilk = new PepperMilk();
        peanMilk.make();

    }
}
